@mixin dotBase {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  margin-right: 8px;
  border-radius: 50%;
}

.mcpToolChat {
  width: 100%;
  padding: 12px 16px;
  background-color: #ebf0ff;
  border-radius: 8px;
  overflow: hidden;
  .header {
    height: 30px;
    padding: 4 8px;
    display: flex;
    align-items: center;
    .chatStatus {
      display: flex;
      align-items: center;
      .thinkingText {
        margin-left: 8px;
        background: linear-gradient(270deg, #9747ff 0%, #4f4dff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      .statusText {
        margin-left: 8px;
        color: #27272a;
      }
    }
    .collapse {
      margin-left: auto;
      cursor: pointer;
    }
  }
  .content {
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }
  .content.expanded {
    max-height: 9000px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }
  :global(.ant-collapse-content-active) {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  :global(.ant-collapse-item) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  :global(.ant-tabs-nav::before) {
    border-bottom: unset !important;
  }
  :global(.ant-tabs-tab) {
    color: #71717d;
    font-size: 14px;
  }
  :global(.ant-collapse-header-text) {
    display: block;
    width: 100%;
  }
  :global(.ant-tabs-content-holder) {
    border-radius: 8px;
    background-color: #f5f8ff;
  }
  :global(.ant-collapse-header) {
    padding: 8px 16px;
  }

  .mcpToolHeader {
    width: 100%;
    display: flex;
    align-items: center;
    height: 22px;
    .mcpLeft {
      display: flex;
      width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex-shrink: 0;
      .mcpLogo {
        width: 20px;
        height: 20px;
        border: 1px solid #c1c6d6;
        border-radius: 4px;
        overflow: hidden;
        flex-shrink: 0;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .mcpTitle {
        margin-left: 8px;
        margin-right: 8px;
        color: rgba(0, 0, 0, 0.85);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    .fill {
      flex-shrink: 0;
      width: 1px;
      border-right: 1px solid rgba(0, 0, 0, 0.06);
      height: 22px;
      // margin: 0 16px;
    }
    .mcpDesc {
      flex: 1;
      min-width: 0;
      margin: 0 16px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #333333;
    }
    .mcpStatus {
      flex-shrink: 0;
      display: flex;
      max-width: 74px;
      min-width: 74px;
      margin-left: 16px;
    }
    .mcpSuccess {
      color: #00cc39;
    }
    .mcpError {
      color: #f5222d;
    }
    .dot {
      width: 6px;
      height: 6px;
      margin-right: 8px;
      border-radius: 50%;
    }
    .successDot {
      @include dotBase;
      background-color: #00cc39;
    }
    .errorDot {
      @include dotBase;
      background-color: #f5222d;
    }
  }

  .inputoutParams {
    width: 100%;
  }
}
